package com.lc.activiti.process.service;

import cn.hutool.json.JSONObject;
import com.lc.activiti.config.Result;
import com.lc.activiti.process.AuditBean;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 任务操作实现层服务接口
 *
 * @author 骆超
 * @since 2021-06-16 16:51:53
 */
public interface TaskActionService {

    Result startTaskByBusiness(Long businessId, String processDefinitionKey, String processName, JSONObject jsonObject) throws IOException;

    Result auditTask(@RequestBody AuditBean auditBean) throws Exception;

    void getAuditedImg(HttpServletResponse response, AuditBean auditBean) throws IOException;

    Result getTasks(AuditBean auditBean);

    Result transferTask(AuditBean auditBean) throws Exception;

    Result recallProcess(AuditBean auditBean) throws Exception;
}
